//
//  HTMBottomView.m
//  QVBusUser
//
//  Created by Ting Han on 2017/9/4.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTMBottomView.h"

@implementation HTMBottomView

#pragma mark --- draw rect

- (void)drawRect:(CGRect)rect
{
    
    [self drawInContext:UIGraphicsGetCurrentContext()];
    
    self.layer.shadowColor = [[UIColor blackColor] CGColor];
    self.layer.shadowOpacity = 0.2;
    self.layer.shadowOffset = CGSizeMake(0.0f, 0.0f);
    
}

- (void)drawInContext:(CGContextRef)context
{
    
    CGContextSetLineWidth(context, 0.1);
    CGContextSetFillColorWithColor(context, [UIColor whiteColor].CGColor);
    
    [self getDrawPath:context];
    CGContextFillPath(context);
    
}

- (void)getDrawPath:(CGContextRef)context
{
    CGRect rrect = self.bounds;
    CGFloat midx = CGRectGetMidX(rrect);
    CGFloat minx = CGRectGetMinX(rrect);
    CGFloat miny = CGRectGetMinY(rrect);
    CGFloat width = CGRectGetWidth(rrect);
    //CGContextAddArc(context,midx , miny, 60, <#CGFloat startAngle#>, <#CGFloat endAngle#>, <#int clockwise#>)
   // CGContextAddArc(context, 160, 180, 30,  - M_PI / 180, / 180, 1);
    CGContextClosePath(context);
    
}


@end
